//
//  ModelOfContact.m
//  UI15_SandBox_NSFileManager_NSFileHandler
//
//  Created by 李劲成 on 16/3/29.
//  Copyright © 2016年 ljc. All rights reserved.
//

#import "ModelOfContact.h"



@implementation ModelOfContact

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.age = [aDecoder decodeIntegerForKey:@"age"];
    }
    return self;
    
}
/** 实现 NSCoding协议方法. */

/** 归档时调用此协议方法. */
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeInteger:self.age forKey:@"age"];
}


@end
